package com.mybatis.entity;

import org.apache.ibatis.type.Alias;

/**
 * @author qinjiasheng
 */
@Alias("role1")
public class Role {
	private Long id;
	private String roleName;
	private String note;

	public Role() {
	}

	public Role(long id,String roleName, String note) {
		this.id = id;
		this.roleName = roleName;
		this.note = note;
	}
	public Role(String roleName, String note) {
		this.roleName = roleName;
		this.note = note;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Override
	public String toString() {
		return "Role{" +
				"id=" + id +
				", roleName='" + roleName + '\'' +
				", note='" + note + '\'' +
				'}';
	}
}
